package com.jxsd.edu.cn.struts2.dao;

import java.util.List;

import com.jxsd.edu.cn.struts2.models.Category;

public interface CatagoryDao 
{
    /**
     * get  a  object  of  catagory
     * */
	public  Category  getCatagory(int  catagoryId);
	/**
	 * get  all  categories
	 * */
	public  List<Category>  getCatagories();
	/**
	 * delete  a  catagory
	 * */
	public  void  deleteCatagory(int  catagoryId);
	/**
	 * add  a  catagory
	 * */
	public  void  addCatagory(Category  catagory);
}
